package com.mmtech.mail.service;


import java.io.InputStream;
import java.util.List;

/**
 * 邮件发送服务
 *
 * @author wuchong
 */
public interface MailService {

    /**
     * 发送文本邮件
     *
     * @param to
     * @param subject
     * @param content
     */
    void sendSimpleMail(String to, String subject, String content);

    /**
     * 发送html邮件
     *
     * @param to
     * @param subject
     * @param content
     */
    void sendHtmlMail(String to, String subject, String content);

    /**
     * 发送带附件的邮件
     *
     * @param to
     * @param subject
     * @param content
     * @param filePath
     */
    void sendAttachmentsMail(String to, String subject, String content, String filePath);

    /**
     * 发送带附件的邮件
     *
     * @param toList
     * @param ccList
     * @param subject
     * @param content
     * @param filePath
     */
    void sendAttachmentsMail(String[] toList, String[] ccList, String subject, String content, String filePath);

    /**
     * 发送带附件的邮件
     *
     * @param toList
     * @param ccList
     * @param subject
     * @param content
     * @param attachmentName
     * @param bytes
     */
    void sendAttachmentsMail(String[] toList, String[] ccList, String subject, String content, String attachmentName, byte[] bytes);

    /**
     * 发送正文中有静态资源（图片）的邮件
     *
     * @param to
     * @param subject
     * @param content
     * @param rscPath
     * @param rscId
     */
    void sendInlineResourceMail(String to, String subject, String content, String rscPath, String rscId);

}
